<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>072-布局-添加浮动.html</title>
	<style>
		*{
			margin: 0;
			padding: 0;
		}
		.father{
			width: 600px;
			height: 400px;
			border: 20px solid #000;
			margin: 50px auto;
			padding: 30px ;
		}
		.son{
			width: 100px;
			height: 100px;
			background-color: red;
			float: right;
			/*float: center;*/
			/*float: none;*/
		}
	</style>
</head>
<body>
	<div class="father">
		<div class="son"></div>
	</div>
</body>
</html>